<%@ page contentType="text/html; charset=UTF-8"%>
<%@include file="/html/portlet/chart/template/init.jsp"%>

<%
	String mvcPath = ParamUtil.getString(request, "mvcPath");

	ResultRow row = (ResultRow) request
			.getAttribute(WebKeys.SEARCH_CONTAINER_RESULT_ROW);

	ChartTemplate template = (ChartTemplate) row.getObject();
%>

<liferay-ui:icon-menu>
		<portlet:renderURL var="editCharttemplateURL">
			<portlet:param name="chartTemplateId"
				value="<%=String.valueOf(template.getChartTemplateId()) %>" />
			<portlet:param name="mvcPath"
				value="/html/portlet/chart/template/edit_template.jsp" />
			<portlet:param name="redirect" value="<%= currentURL %>" />
		</portlet:renderURL>

		<liferay-ui:icon image="edit" message="edit"
			url="<%=editCharttemplateURL.toString() %>" />
			
		<portlet:actionURL name="deleteChartTemplate" var="deleteCharttemplateURL">
			<portlet:param name="chartTemplateId"
				value="<%= String.valueOf(template.getChartTemplateId()) %>" />
		</portlet:actionURL>

		<liferay-ui:icon-delete url="<%=deleteCharttemplateURL.toString() %>" />
</liferay-ui:icon-menu>